/**
 * Created by hy1 on 2018/3/31.
 */
$(function(){
    $("[data-href]").on("click", function (e) {
        e.stopPropagation();location.href=$(this).data("href");
    });

    $(".js-top-more").click(function(){
        //左右切换的调用  点击js-top-more .right-aside 左右切换
        var i=$(this).data("toggle-more");
        if(i==0){
            $(".right-aside").animate({right:"0"},200);
            $(this).data("toggle-more",1)
        }else{
            $(".right-aside").animate({right:"-300px"},200);
            $(this).data("toggle-more",0)
        }
    });
    $(".wallet-key-export-head").on("click","li",function(){
        var i=$(this).index();
        $(this).addClass("curr").siblings(".curr").removeClass("curr");
        if(i==0){
            $(".wallet-key-export-intro").css("display","block");
            $(".wallet-key-export-qrcode").css("display","none");
        }else if(i==1){
            $(".wallet-key-export-intro").css("display","none");
            $(".wallet-key-export-qrcode").css("display","block");
        }
    })
});
